﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp5
{
    public class Calculation  
    {
        public double  num1;
        public double  num2;
        public  Calculation (double  num1, double  num2)
        {
            this.num1 = num1;
            this.num2 = num2;
        }
        public void  Addition()
        {
            double sum = this.num1 + this.num2;
            Console.WriteLine("他们的和为："+sum);
        }
        public void Subtraction()
        {
            double difference = this.num1 - this.num2;
            Console.WriteLine("他们的差为："+difference);
        }
        public void Division()
        {
            double  quotient = this.num1 / this.num2;
            Console.WriteLine("他们的商为："+quotient);
        }
        public  void Multiplication()
        {
            double product = this.num1 * this.num2;
            Console.WriteLine("他们的积为："+product);
        }
        
        
    }
}
